<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link href="tooltip.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="tooltip">
    <p class="sec">hello world!
        <span class="bottomTips">我是tips</span>
    </p>
</div>

<!--<div class="tooltip">-->
    <!--<p class="sec">hello world!-->
        <!--<span class="leftTips">我是tips</span>-->
    <!--</p>-->
<!--</div>-->
<div class="tooltip2 tooltip">
    <p class="sec">hello world!
        <span class="topTips">我是tips</span>
    </p>
</div>
<div class="tooltip3 tooltip">
    <p class="sec">hello world!
        <span class="leftTips">我是tips</span>
    </p>
</div>
<div class="tooltip4 tooltip">
    <p class="sec">hello world!
        <span class="rightTips">我是tips</span>
    </p>
</div>
<script src="tooltip.js"></script>
</body>
</html>